﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Optimization;

namespace MvcApplication.Cms
{
    public class BundleConfig
    {
        public static void RegisteBundle(BundleCollection bundles)
        {
            #region flatty样式
            var flattyStyles = new StyleBundle("~/Content/flatty/assets/stylesheets/css"); // 因为font会加载不进来
            flattyStyles.Include("~/Content/flatty/assets/stylesheets/bootstrap/bootstrap.css");
            flattyStyles.Include("~/Content/flatty/assets/stylesheets/bootstrap/bootstrap-responsive.css");
            flattyStyles.Include("~/Content/flatty/assets/stylesheets/light-theme.css ");
            flattyStyles.Include("~/Content/sale-price/app-bg-config.css");
            bundles.Add(flattyStyles);
            #endregion


            #region flatty JS
            var flattyJs = new ScriptBundle("~/Content/flatty/assets/js");
            flattyJs.Include("~/Content/flatty/assets/javascripts/jquery/jquery.min.js");
            flattyJs.Include("~/Content/flatty/assets/javascripts/plugins/mobile_events/jquery.mobile-events.min.js");

            flattyJs.Include("~/Content/flatty/assets/javascripts/bootstrap/bootstrap.min.js");
            flattyJs.Include("~/Content/flatty/assets/javascripts/plugins/bootstrap_switch/bootstrapSwitch.min.js");
            flattyJs.Include("~/Content/flatty/assets/javascripts/plugins/bootstrap_colorpicker/bootstrap-colorpicker.min.js");
            flattyJs.Include("~/Content/flatty/assets/javascripts/plugins/slider_nav/slidernav-min.js");
            flattyJs.Include("~/Content/flatty/assets/javascripts/nav.js");

            flattyJs.Include("~/Content/Vue/vue.min.js");
            flattyJs.Include("~/Content/Vue/vue-route.js");
            flattyJs.Include("~/Content/sale-price/app-bg-config.js");

            bundles.Add(flattyJs);
            #endregion

            #region sale
            var saleScript = new ScriptBundle("~/Content/salePrice/");
            saleScript.Include("~/Content/sale-price/Org/test.js");
            bundles.Add(saleScript);
            #endregion
        }
    }
}